package com.chagee.channel.api.bo.lark;

import com.chagee.channel.api.enums.LarkFileTypeEnum;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: 浩彬
 * @date: 2024/09/18
 */
@Data
@Valid
public class UploadFileByUrlVO implements Serializable {

    private static final long serialVersionUID = -864461624726666718L;
    /**
     * 需要带后缀，e.g."食品生产许可证.jpg"
     */
    @NotBlank(message = "文件名称不能为空!")
    private String fileName;

    @NotNull(message = "文件类型不能为空!")
    private LarkFileTypeEnum fileType;

    /**
     * 文件地址.
     */
    @NotBlank(message = "文件地址不能为空!")
    private String url;

}
